package com.dimeng.entity;

import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.dimeng.R;

/**
 * @author write by ccn<br>
 *         <b>helloandroid100@gmail.com</b>
 * @version 0.1;2012-07-02 下午7:11:00<br>
 *          descrition:美图视图GridView的item缓存
 */
public class MettleViewCache {
	private View baseView;
	private TextView alumIdTextView;//相册ID
	private TextView albumNameTextView;
	private ImageView imageView;

	public MettleViewCache(View baseView) {
		this.baseView = baseView;
	}

	public TextView getAlumIdTextView() {
		if(null == alumIdTextView)
			alumIdTextView = (TextView) baseView.findViewById(R.id.alumId);
		return alumIdTextView;
	}

	public TextView getAlbumNameTextView() {
		if(null == albumNameTextView)
			albumNameTextView = (TextView) baseView.findViewById(R.id.photoAlbumName);
		return albumNameTextView;
	}

	public ImageView getImageView() {
		if (null == imageView)
			imageView = (ImageView) baseView.findViewById(R.id.imageViewId);
		return imageView;
	}
}
